PokeBankInt
PokeBankInt BankNumber, AddressOffset, IntegerValue
 
Parameters:

    BankNumber = The Index Identifier of the bank that you wish to poke
    AddressOffset = The Address where you want to write this data to within the bank
    IntegerValue = The Value you wish to store in this memory bank at the above address offset
Returns: NONE
 

     PokeBankInt allows you to poke (store) a 32bit integer value into a memory bank.



FACTS:


     * 32bit integer values can represent a numeric range of -2147483648 to 2147483647
     * 32bit integer values are signed.
     * 32bit integers are 4 bytes wide
     * 32bit integers are 2 word wide



Mini Tutorial:


      This simple example creates a bank, pokes some Integer values into it then displays them again.

  
  
; Create Memory Bank #1 and make it 1000 bytes in size
  CreateBank 1,1000
  
  
; Store some 32bit integer values into the bank
; ================================================
  
; Poke the integer value 1234567 into memory bank 1 at
; address offset 500
  
  PokeBankInt 15001234567
  
; Poke the next integer value 222333 at 504, So it doesn't overwrite
; the previous integer value poked at 500.
  
  PokeBankInt 1504222333
  
  
; Read and Display the previously poke value again.
  Print "Your Integer Value:"+Str$(PeekBankInt(1,500))
  
; Read and Display the previously poke value again.
  Print "Your Integer Value:"+Str$(PeekBankInt(1,504))
  
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  Your Integer Value: 1234567
  Your Integer Value: 222333
  

 
Related Info: CreateBank | Dim | GetBankSize | integer | NewBank | PeekBankFloat | PeekBankInt | PeekBankString | PeekBankWord | Pointer | PokeBankByte | PokeBankFloat | PokeBankWord :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com